<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $bbsdata=M('think_data');
        $data=$bbsdata->order('id desc')->select();
        $bbscount=$bbsdata->count();
        $this->assign('bbscount',$bbscount);
        $this->assign('rows',$data);
        $this->display();
        
    }
}